package org.util.properties;

import java.io.InputStream;
import java.util.Properties;

/**
 * 
 * 获取相应configure.properties文件的信息;
 * 
 * @Title: FileProperties.java
 * @Description:培训师平台
 * @Copyright: Copyright (c) 2011
 * @Company:北京千家在线
 * @author miaoyouhu
 * @date Jul 1, 2011 10:29:52 AM
 * @version V1.0
 */
public class FileProperties extends Properties {
	private static final long serialVersionUID = -8012646765038324330L;

	public FileProperties() {
	}

	public FileProperties(String s) {
		try {
			InputStream inputstream = getClass().getResourceAsStream(s);
			load(inputstream);
			inputstream.close();
		} catch (Exception localException) {
			System.out.println(localException);
		}
	}

	public FileProperties(Properties properties) {
		super(properties);
	}
	
	public static void main(String[] args) {
		FileProperties file = new FileProperties("/configure.properties");
		String msg = file.getProperty("promptMsg");
		System.out.println(msg);
	}
}
